import axios from '../axios'

/* 
 * 首页模块
 */

// 总统计
export const collect = () => {
    return axios({
        url: '/kysj/collectStatistics/countByDay',
        method: 'get',
    })
}

// 采集数量统计
export const volume = (startTime, endTime) => {
    return axios({
        url: '/kysj/collectStatistics/collectionFromStartDayToEndDay?startTime='+startTime+'&endTime='+endTime,
        method: 'get',
    })
}

// CPI
//   查询
export const cpiQuery = () => {
    return axios({
        url: '/kysj/collectStatistics/cpiList',
        method: 'get',
    })
}
//   参数列表
export const cpiTypeList = () => {
    return axios({
        url: '/kysj/collectStatistics/consumerTypeList',
        method: 'get',
    })
}
//   分类查询
export const cpiConsumerType = (typeName) => {
    return axios({
        url: '/kysj/collectStatistics/cpiInfoByConsumerType/'+typeName,
        method: 'get',
    })
}

// PPI
//   查询
export const ppiQuery = () => {
    return axios({
        url: '/kysj/collectStatistics/ppiList',
        method: 'get',
    })
}
//   参数列表
export const ppiTypeList = () => {
    return axios({
        url: '/kysj/collectStatistics/industryTypeList',
        method: 'get',
    })
}
//    分类查询
export const ppiConsumerType = (typeName) => {
    return axios({
        url: '/kysj/collectStatistics/ppiInfoByIndustryType/'+typeName,
        method: 'get',
    })
}

// 工资
//   查询
export const salaryQuery = () => {
    return axios({
        url: '/kysj/collectStatistics/salaryList',
        method: 'get',
    })
}
//   参数列表
export const companyTypeList = () => {
    return axios({
        url: '/kysj/collectStatistics/companyTypeList',
        method: 'get',
    })
}
//   分类查询
export const salaryCompanyType = (typeName) => {
    return axios({
        url: '/kysj/collectStatistics/salaryInfoByCompanyType/'+typeName,
        method: 'get',
    })
}

// 低保 
//   查询
export const subsistenceQuery = () => {
    return axios({
        url: '/kysj/collectStatistics/subsistenceList',
        method: 'get',
    })
}
//   参数列表
export const regionList = () => {
    return axios({
        url: '/kysj/collectStatistics/regionList',
        method: 'get',
    })
}
//  分类查询 
export const subsistenceInfoByRegion = (typeName) => {
    return axios({
        url: '/kysj/collectStatistics/subsistenceInfoByRegion/'+typeName,
        method: 'get',
    })
}

// 数据类型 
export const dataTypeCountList = () => {
    return axios({
        url: '/kysj/collectStatistics/dataTypeCountList',
        method: 'get',
    })
}

// 数据源 
export const websiteNameCountList = () => {
    return axios({
        url: '/kysj/collectStatistics/websiteNameCountList',
        method: 'get',
    })
}